package com.service.business.trading.controller.req;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.*;
import java.math.BigDecimal;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class TradingSpotCreateReq {

    @NotNull(message = "trading_spot_exception_price_type_not_null")
    @Min(value = 1, message = "trading_spot_exception_price_type_not_right")
    @Max(value = 2, message = "trading_spot_exception_price_type_not_right")
    private Integer priceType;

    @NotBlank(message = "trading_spot_exception_symbol_not_blank")
    private String symbol;

    @DecimalMin(value = "0.1", message = "trading_spot_exception_order_price_not_less_than")
    private BigDecimal orderPrice;

    @NotNull(message = "trading_spot_exception_trade_num_not_null")
    @DecimalMin(value = "0.0001", message = "trading_spot_exception_trade_num_not_less_than")
    private BigDecimal tradeNum;

    @NotBlank(message = "args_empty_safety_pwd")
    private String safetyPwd;

}
